#include "InetAddress.h"
#include "SocketAcceptor.h"
#include <iostream>
#include <string>

int main()
{
  InetAddress addr("localhost", "15000");
  SocketAcceptor sock(addr);
  SocketStream ss;
  char buf[100];

  while (true)
    {
      sock.accept(ss);

      std::cout << "Incomming connection\n";
      std::string msg = ss.recv();
      std::cout << "msg modtaget\n";
      std::cout << msg << std::endl;;
    }
}
